<!-- 新增表单 -->

<template>
  <WebForm path="add" word6>
    <MyStep />

    <div v-if="one.step === 1" class="row6 marginBottom">
      <Step1 />
    </div>

    <div v-else-if="one.step === 2" class="row6 marginBottom">
      <Step2Base />

      <Step2Circuit v-if="one.monitorPointType === 1" />
      <Step2Transformer v-else-if="one.monitorPointType === 2" />
      <Step2Water v-else-if="one.monitorPointType === 3" />
      <Step2Gas v-else-if="one.monitorPointType === 4" />
    </div>
  </WebForm>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'FormAdd',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb('add')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
